package day21.TaskWithBraces;

import java.util.LinkedList;
import java.util.Scanner;

public class CheckBracesDemoUnfinished {

	/**
	 * @param args
	 */
	
	static boolean isValidBracesExpression(LinkedList list){
		
		if (list == null)
			return false;
		
		if (list.peekFirst().equals(")") || list.peekFirst().equals("("))
			return false;
		
		//list.
		
		//return (isValidBracesExpression(list.subList(1, list.size()-1)));
		
		return true;
	}
	
	public static void main(String[] args) {
		
		System.out.println("Enter a string of braces: ");
		Scanner input = new Scanner(System.in);
		
		String str = new String();
		str = input.nextLine();
		
		LinkedList list = new LinkedList();
		
		for (int i = 0; i <= str.length(); i++){
			list.addLast(str.charAt(i));
		}
	

	}

}
